﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TanWeb.Models.Entities
{
    public class Products
    {
        public int PageCount { set; get; }
        public int CurrentPage { set; get; }
        public string GroupId { set; get; }
        public string GroupName { set; get; }
        public string SubGroupId { set; get; }
        public string SubGroupName { set; get; }
        public List<ProductProfile> ProductProfile { set; get; }

        public Products()
        {
            PageCount = 0;
            CurrentPage = 0;
            GroupId = string.Empty;
            GroupName = string.Empty;
            SubGroupId = string.Empty;
            SubGroupName = string.Empty;
            ProductProfile = new List<ProductProfile>();
        }

        public Products(int PageCount, List<ProductProfile> ProductProfile, int CurrentPage = 1, string GroupId = null,
            string GroupName = null, string SubGroupId = null, string SubGroupName = null)
        {
            this.PageCount = PageCount;
            this.ProductProfile = ProductProfile;
            this.CurrentPage = CurrentPage;
            this.GroupId = GroupId;
            this.GroupName = GroupName == null ? string.Empty : GroupName;
            this.SubGroupId = SubGroupId;
            this.SubGroupName = SubGroupName == null ? string.Empty : SubGroupName;
        }
    }
}